import request from '@utils/request';
import { service } from '@utils/service'

export async function getFileList(params:any) {
  return request(`${service.SERVICE_ROOT}/proFile/list`,{
    method: 'POST',
    data: {
      ...params,
    },
  })
}

export async function deleteProFile(params:any) {
  return request(`${service.SERVICE_ROOT}/proFile/delete`,{
    method: 'DELETE',
    data: {
      ...params,
    },
  })
}

export async function saveFile(params:any) {
  return request(`${service.SERVICE_ROOT}/proFile/save`,{
    method: 'POST',
    data: {
      ...params,
    },
  })
}

export async function detailProFile(params:any) {
  return request(`${service.SERVICE_ROOT}/proFile/detail`,{
    method: 'POST',
    data: {
      ...params,
    },
  })
}

export async function updateProFile(params:any) {
  return request(`${service.SERVICE_ROOT}/proFile/update`,{
    method: 'PUT',
    data: {
      ...params,
    },
  })
}
